
var initState = [
  {
    name:"aa",
    age:20
  },
  {
    name:"bb",
    age:15
  }
]
export default (state = initState, action) => {
  var { type, data } = action;
  switch (type) {
    case "jiaList":
      return [data,...state]
    case "jianList":
      state.splice(data,1)
      return [...state]
    default:
      return state
  }
}
